package com.gba.mark.user.service.permission.impl;

import com.gba.mark.user.entity.permission.Role;
import com.gba.mark.user.entity.permission.SysRole;
import com.gba.mark.user.mapper.permission.RoleMapper;
import com.gba.mark.user.service.permission.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, SysRole> implements IRoleService {

    /**
     * 根据用户ID获取角色信息
     */
    @Override
    public List<Role> selectRoleByUserId(Integer userId){
        return this.baseMapper.selectRoleByUserId(userId);
    }

}
